package com.test.service.impl;

import com.test.dao.UserDAO;
import com.test.entity.UserEntity;
import com.test.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDAO userDAO;

    public List<UserEntity> listAllUser() {
        return userDAO.listAll();
    }
}
